//
//  QianBaoTableViewCell.m
//  ZhiBoYuan
//
//  Created by coder_di on 2018/4/17.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "QianBaoTableViewCell.h"

@implementation QianBaoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //添加UI
        [self addUI];
    }
    return self;
}

-(void)addUI{
    
    self.timeLable = [[UILabel alloc]initWithFrame:CGRectMake(20 * KscreenWidth, 10 * KscreenHeight, ScreenWidth / 2 - 40 * KscreenWidth, 20 * KscreenHeight)];
    self.timeLable.text = @"2018-08-09 13:14:00";
    self.timeLable.textAlignment = NSTextAlignmentCenter;
    self.timeLable.font = [UIFont systemFontOfSize:14 * KscreenWidth];
    [self.contentView addSubview:self.timeLable];
    
    self.xuedouLable = [[UILabel alloc]initWithFrame:CGRectMake( ScreenWidth / 2 + 20 * KscreenWidth, 10 * KscreenHeight, ScreenWidth / 2 - 40 * KscreenWidth, 20 * KscreenHeight)];
    self.xuedouLable.text = @"300";
    self.xuedouLable.font = [UIFont systemFontOfSize:14 * KscreenWidth];
    self.xuedouLable.textAlignment = NSTextAlignmentCenter;
    self.xuedouLable.textColor = [UIColor redColor];
    [self.contentView addSubview:self.xuedouLable];
    
    UIView *line = [[UIView alloc]initWithFrame:CGRectMake( ScreenWidth / 2, 0, 0.5 * KscreenWidth, 40 * KscreenHeight)];
    line.backgroundColor = hui2Color;
    [self.contentView addSubview:line];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
